				<div class="section">
                	<script type="text/javascript">
					function checkuser(){
						var form = document.sac;
						if(form.service_title.value == ""){
							alert("Please enter room title!");
							form.service_title.focus();
							return false;
						}else{
							return true;
						}
					}
				</script>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Edit room</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner">
                        	<div class="table_tabs_menu">
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->

							</div>
				<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper" style="background:none;">
								<div class="table_wrapper_inner">
                                	<div class="error_red"><?php if(isset($error)) { echo "<p>".$error."</p>"; } ?>
										<?php echo validation_errors();?>
									</div>
									<form action="<?php echo base_url();?>admin/services/update/<?php echo $getdata['service_id']; ?>" method="post" name="sac" onsubmit="return checkuser()" enctype="multipart/form-data">
                            		<div class="form_items">
                                    	<div class="form_items_left">Service title</div>
                                        <div class="form_items_right"><input name="service_title" type="text" value="<?php echo $getdata['service_title']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Price adults</div>
                                        <div class="form_items_right"><input name="service_adults" type="text" value="<?php echo $getdata['service_adults']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Price child</div>
                                        <div class="form_items_right"><input name="service_child" type="text" value="<?php echo $getdata['service_child']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Price type</div>
                                        <div class="form_items_right">
                                        	<input type="radio" name="service_type" value="0" <?php if($getdata['service_type'] == 0){ echo "checked='checked'";} ?> />Per person
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Train</div>
                                        <div class="form_items_right">
                                        <select name="train_id" id="">
                                        <?php
										foreach($listtrain as $items){
											echo "<option value='".$items['train_id']."'";
											if($train_id == $items['train_id']){ echo 'selected="selected"';}
											echo ">".$items['train_name']."</option>";
										}
										?>
                                        </select>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Status</div>
                                        <div class="form_items_right">
                                        	<select name="status" id="">
                                            	<option value="1" <?php if($getdata['service_status'] == 1){ echo 'selected="selected"';} ?>>Active</option>
                                                <option value="0" <?php if($getdata['service_status'] == 0){ echo 'selected="selected"';} ?>>Not active</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">&nbsp;</div>
                                        <div class="form_items_right">
                                        	<input type="submit" name="ok" value="Edit service" class="magin"/>
                                            <input type="reset" name="Reset" id="button" value="Reset" class="magin"/>
                                        </div>
                                    </div>

                                	</form>
								</div>
							</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>